package com.dhcc.bpm.modules.safe.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.NullSerializer;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import org.springblade.core.mp.base.BaseEntity;

/**
 * @ClassName IpControl
 * @Description API访问控制IP关联表实体类
 * @Author daina
 * @Date 2020/2/21 14:16
 * @Version V1.0
 * @Copyright: 2020 东华软件 . All rights reserved.
 */
@Data
@TableName("opc_ip_control")
@EqualsAndHashCode(callSuper = true)
@ApiModel(value = "IpControl对象", description = "API访问控制IP关联表")
public class IpControl extends BaseEntity {

	private static final long serialVersionUID = 1L;

	/**
	* 控制ID （关联opc_access_control表）
	*/
		@ApiModelProperty(value = "控制ID （关联opc_access_control表）")
		@JsonSerialize(using = ToStringSerializer.class,nullsUsing = NullSerializer.class)
		private Long opcControlId;
	/**
	* ip地址
	*/
		@ApiModelProperty(value = "ip地址")
		private String ipAddress;

	/**
	 * 描述
	 */
	@ApiModelProperty(value = "描述")
//	@TableField(value = "`describe`")
	private String describe;

}
